import Mock from 'mockjs'

Mock.mock('/api/menu','get',config=>{
  console.log(config)
  return {
    code:0,
    msg:'访问成功',
    data: [
      {
        path:'/home',
        name:'Home',
        meta:{
          title:"主页",//组件标题
          keepAlive:true,//组件是否缓存
          icon:'home',
          roles:['admin','user']
        }
      },
      {
        path:'/test',
        name:'Test',
        meta:{
          title:"测试",//组件标题
          keepAlive:true,//组件是否缓存
          icon:'home',
          roles:['admin']
        },
      },
    ]
  }
})